package net.vkits.admin.application;

import net.vkits.admin.domain.model.Customer;
import net.vkits.admin.domain.repository.CustomerRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by ethan-liu on 16/4/6.
 */
@Service
public class CustomerApplicationService {
    private static final Logger logger = LoggerFactory.getLogger(CustomerApplicationService.class);

    @Resource
    private CustomerRepository customerRepository;

    public Page<Customer> getCustomers(Pageable pageable) {
        return customerRepository.findAll(pageable);
    }
}
